#ifndef _INCL_AP_PRLS
#define _INCL_AP_PRLS

#include "AP_def.h"

class AP_PRLS
{
 public:
      AP_PRLS();
      
      
  TypeScan scan_prev; 
  
  vector<GPoint2D> cart_scan;
  
  vector<int> id_scan;
  vector<int> matched_id_p;
  
  vector<float> P1_p;
  vector<float> P2_p;
  
  vector<float> P1_c;
  vector<float> P2_c;
  
  vector<float> vec_A;
  vector<float> vec_B;
  vector<float> vec_dev;
  
  vector<float> angle_deb;
  vector<float> angle_end;
  
  vector<GPoint2D> line_deb;
  vector<GPoint2D> line_end;
  
  
  int nline;
  
 
  
  bool first_exec;

  void scan_polarTocartesian(TypeScan& scan,vector<GPoint2D>& cart_scan_);
  void analyse(TypeScan& scan);
  
  void scan_polarTocartesian2(TypeScan& scan,vector<GPoint2D>& cart_scan_);
  void analyse2(TypeScan& scan);

};

#endif